/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rationalsheet.parser.operation.function;

import org.rationalsheet.parser.type.Type;

/**
 *
 * @author Overmind
 */
public abstract class Function0Arguments<R>
    extends Function
{

    public Function0Arguments(String name, Type resultType)
    {
        super(name, resultType, new Type[]{});
    }

    @Override
    protected Object calculateOfObjects(Object[] arguments)
    {
        return calculate();
    }
    
    public abstract R calculate();
    
}
